package Stringdemo;

public class StringDemo12 {
    public static void main(String[] args) {
        String talk = "你TM玩的真菜，煞笔，草泥马，sb";

        String[] arr = {"TM","煞笔","草泥马","sb"};

        for (int i = 0; i < arr.length; i++) {
            talk = talk.replace(arr[i],"***");
        }

        System.out.println(talk);
    }
}
